<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="../include/top.jsp"%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

</head>
<body>
<div id="printArea">
<c:if test="${not empty obj.list}">

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td colspan="0" align="left" valign="middle" class="text_gray2"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#96bee2">
     <tr>
        <td height="13" valign="top" bgcolor="#FFFFFF">
      
	<c:forEach var="row" items="${obj.list}">  
                   <div class="s-order-box">
                     <div class="text_left bg">
                             <br/>
                        		订单号：${row.orderCode}
                        		<br/>
                        		下单时间 : <fmt:formatDate value="${row.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>   
                        		 <br/>
                        		配送地址：${row.address} 
                        </div>
                        <br/>
                         <div class="text_left bg">
                        <table cellpadding="0" cellspacing="0"  width="90%">
                        <tbody>
                           <tr>
                        <td class="no_padding"  width="50%">
                         商品名称 </td>
                          <td class="no_padding" width="15%">
                         订购数量 </td>
                          <td class="no_padding" width="15%">
                         单价 </td>
                         <td class="no_padding" width="20%">
                         小计 </td></tr>
                            	<c:forEach var="product" items="${row.osvList}">  
                        <tr>
                        <td class="no_padding">
                       ${product.productName}-${product.productFieldValue} </td>
                          <td class="no_padding">
                      ${product.productCount} </td>
                          <td class="no_padding">
                       ${product.sellPrice} </td>
                         <td class="no_padding">
                          ${product.sellPrice*product.productCount} </td>
                      
                        </tr>
                                </c:forEach>  
                                  <tr>
                                  <td colspan="3" align="right">合计:</td>
                                  <td>${total}</td>
                                  </tr>
                        </tbody></table>
                        </div>
                      </div>
                </c:forEach>
        
        </td>
      </tr>
    </table></td>
  </tr>
</table>
<script src="${ctx}/js/listProduct.js"></script>
</c:if>
</div>
<%@ include file="../include/bottom.jsp"%>
</body>
</html>